//
//  VOHMusicNavigationBar.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/19.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMusicNavigationBar.h"

@interface VOHMusicNavigationBar ()


@property(nonatomic, strong)UILabel *titleLabel;

@property(nonatomic, strong)UIView *divisionView;
@end

@implementation VOHMusicNavigationBar

-(instancetype)init{
    if (self = [super init]) {
        [self setUpView];
    }
    return self;
}


-(void)setUpView{
    //分割线
    UIView *divisionView = [[UIView alloc] init];
    divisionView.backgroundColor = [UIColor grayColor];
    [self addSubview:divisionView];
    self.divisionView = divisionView;
    //仿Navigation
    VOHButton *backBtn = [VOHButton creatButtonWithFrame:CGRectMake(5, 5, 30, 30) Title:nil HighLightImageName:nil ImageName:@"iconfont-xiangzuojiantou"];
    [self addSubview:backBtn];
    self.backBtn = backBtn;

    self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"backgroundimage"]];
}


-(void)layoutSubviews{
    [super layoutSubviews];
    self.divisionView.frame = CGRectMake(0, 0, self.bounds.size.width, 1);
    self.titleLabel.frame =  CGRectMake(ScreenWidth * 0.5 - 40, 5, 80, 30);
}


@end
